// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include "targetver.h"
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <tchar.h>
#include <windows.h>
#include<string>
#include <vector>
#include <list>
#include <map>
#include <hash_map>
#include <hash_set>
#include <set>
#include <algorithm>
#include <conio.h>
#include <cstdlib>
#include <cassert>
#include <cmath>
#include <fstream>
#include <iostream>

using namespace std;
using namespace stdext ;
#include "../GlobalDefinition.h" 
#include <util.h>
//#define USE_VECTOR
#define USE_NIL
#ifdef USE_VECTOR
#define KEY CVectorKey
#else
#ifdef USE_NIL
#define KEY CNilKey
#endif
#endif
//Type define --------------------------------------------------------------------------------------------- 
class CNodeBehavior
{
public:
	NODE_INDEX m_nNodeIndex;
	MSEC m_dwJoinTime;
	MSEC m_dwLeaveTime;
	CNodeBehavior()
		:m_nNodeIndex(0)
		,m_dwJoinTime(0)
		,m_dwLeaveTime(0)
	{
	};
};
//end of type define --------------------------------------------------------------------------------------
extern volatile DWORD g_dwCurrentTime;
extern class CScheduleManager *g_pScheduler;

inline MSEC GetCurTime() 
{
	return g_dwCurrentTime;
};
